﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using ZH.Service.Instance;
using ZH.Service.Interface;

namespace ZH.Api.Admin.Controllers.Cashier
{
    /// <summary>
    /// 收银台·房间
    /// </summary>
    public class C_RoomController : BaseController
    {
        private readonly I_Room_Service _room_Service;

        public C_RoomController(I_Login_Service login_Service, I_Room_Service room_Service, I_Order_Service order_Service) : base(login_Service)
        {
            _room_Service = room_Service;
        }

        /// <summary>
        /// 获取房间列表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public async Task<IActionResult> Get_Cashier_Rooms()
        {
            var result = await _room_Service.Get_Cashier_Rooms();

            return Ok(result);
        }
    }
}
